package Model;
import java.util.ArrayList;

public class LeaseCont
{
   private static ArrayList<Lease> leases;
   
   private static LeaseCont instance;
   
   private LeaseCont() {
       leases = new ArrayList<>();
   }
  
   public static LeaseCont getInstance(){
       if(instance == null ){
           instance = new LeaseCont();
       }
       return instance;
   }
   
   public static void addLease(Lease l){
       leases.add(l);
   }
   
   public static ArrayList<Lease> getCont()
   {
       return leases;
    }
}
